<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="menuItemDetail.title"/></title>
    <meta name="heading" content="<fmt:message key='menuItemDetail.heading'/>"/>
    <script type="text/javascript" src="<c:url value='/scripts/browser/browser.js'/>"></script>
    <script type="text/javascript" src="/FCKeditor/editor/dialog/common/fck_dialog_common.js"></script>
    
</head>

<s:form id="menuItemForm" action="saveMenuItem" method="post" validate="true">
    <li style="display: none">
        <s:hidden key="menuItem.id"/>
    </li>
    <s:textfield key="menuItem.name" label="Nombre del menu item" required="true" cssClass="text medium"/>
    
	<s:select key="seccionId" label="Seccion" required="true" list="secciones" />
	
  <li class="buttonBar bottom">
        <s:submit cssClass="button" method="save" key="button.save" theme="simple"/>
        <c:if test="${not empty menuItem.id}">
            <s:submit cssClass="button" method="delete" key="button.delete"
                onclick="return confirmDelete('MenuItem')" theme="simple"/>
        </c:if>
        <s:submit cssClass="button" method="cancel" key="button.cancel" theme="simple"/>
    </li>
</s:form>

<script type="text/javascript">
    Form.focusFirstElement($("menuItemForm"));
</script>